fix transitioning of page state