Added mouse callbacks.