implement mouse action