attempt to resolve defect when creating new pin and poll on heroku in controller