improve customized quit dialog