CHANGED:applied the exit confirm pop-up window function;