Fix page control to actually work