added router and added loadPageConntroller