added dialog for clear