I figured this out.
the new router uses a different IP structure. 192.168.0.1 where my old router used 192.168.1.1. For some reason the pi connected to the new router but saved the old default gateway. I was able to correct it with the below command.
sudo route add default gw 192.168.0.1 dev wlan0