add check for mouseup in another frame