Added callbacks for mouse.