click and move events and cursor