copied the setup code from mouse down to mouse over