added a quit button inside the popover