updated app for heroku deployment