cleaned up; more direct way to get mouse position