added dialog for comparison