Added function to reset popup to empty state