creating pages controller and changing root route