fixing pages controller and some heroku addons dependencies