rearrange mouse callbacks