set up dirty mouse click code