fixed mouse listener registration