onlineapp.application_state == ApplicationState [...] necessary if not online_application.application_state