changed app to work with heroku