Fix the reference close button

Perform hygiene on close button -> cancel button to be consistent with
overlays in process
Bug: 64629

Change-Id: If0bd21f00c4a82582da8d74fb117eb91eae5ffcc