Changed page control to work