add check_for_mobile to application_controller