added pages controller for the pages#index route