switch to password dialog if appstate switches to inactive