updated app for deployment to heroku