Register the listener on menu open if not registered