Resize handler

fix multiple mouse hanlders registration.