Redefine "onUserActive" and "onUserLeave"