added popup hide event