code under testing for the exit dialog