problems when wifi is turned onSupport

So I noticed that when I have my wifi on at my house my phone starts to act funny. Like when I lock and go to unlock only the four buttons on bottom light up and my screen stays black. If I hit the wake button a few times I can get the screen to come on but it does not respond to my touch when I try and slide to unlock. So I have to pull the battery to reboot and everything works fine until I do something that uses my wifi connection like opening YouTube or checking mail or something and then I run in to the same problems. I hhave no issues like that when I just use my cellular data connection. I've done factory resets and I also did the reset when you hold the volume up button when you boot it up and go through the little menu. But yea anyone have any ideas?
Thanks either way