added menu event handler