Add close button to the current pub window