cleaned up the pins_controller.rb file