fixed the pins_controller.rb file