added page dispatcher, most of navigation is done