changed mouse controls to prevent crashing