change the overlay exit calling part