renamed initViews to initRoutes
added pagination