added close button to the popup menu