add helper methods to app_controller