finished popup dialog handler