Page states working

Tested with the microcontroller