Improved pages navigation. Created BaseController