updated pages helper to log to heroku log