added code for clicking, moving, and tracking mouse