Make sure clicking X in top right of popover dismisses