track mouse drag and click events