cleaning the routes file and adding more action in the PagesController file