moved static

removed pageRouter middleware into routes,
helper method to setup page routes