modified the exit button so it closes the program