fixed the leaveQuest function to hide the active quest on leave