exit alert and notification button new logic.