Potty training

So

My two yr old is doing really well with the poops but he’s not telling us when he has pee.

Im thinking we need to do underwear instead of pull ups but any advice on leaking pee all over the carpet? The whole house is carpeted. Ugh