added dialog preparing infrastructure