Modified pins_controller.rb