Fix logic determining if close button should be visible, references #11