changed the way menu mouse detection works