adding event on gizmo click