fixes for heroku
redited applicaitons controller