button and mouse action cleanup