created pages controller and set root path to pages#index