added check for menuclickedevent. the event is now only fired if the
menu is active