added code to make application run on heroku