mouseddown/up was called multiple times for ok/cancel buts