turn app events into disable when state exit