Update pages_controller.rb

added cookies