gross timeout code to transition to the next page