move field by mouse logic