moved menu button recognition to fn. isinbutton(x,y)