Update controller and gemfile for heroku