callbacks function

User callbacks on mouse events