fixed bug on removing menu event listeners