JC: added @view_in_config and @max_pagination to application_controller.