finish popup