adding the ability to change the user states by application when user appears/disappear