modified listener interface to return values while and after dragging