changed pin.rb to solve add pin on live app