did some work on page state spec still needs more work