pages, controller, views and route for the homepage

changed and updated to pages#index