now closing edit boxes on outside click