added menu mouse detectioon