create exit dialog for app