chges in templates and in app to solve heroku pb