cleaned up pins_controller.rb