Hi everyone my Mikey is 4 months old i have had him for a month now and he is a good boy. But he has a few problem areas

. He loves going outside and he has no problem making outside i take him out alot during the day and he goes but now he comes in and pee's too

. I don't know why he feels like peeing again. Does anyone have any ideas? He barks for everything now too. I give him a ton of attention and when he doesn't get it when he wants it he barks non stop. And then runs on his merry way and pee's. What can i do???

What am i doing wrong???
Can anyone help me???