Added views for the pages

Added views for the pages and made some minor changes to the pages controller