Page switching works. Class states are not working yet