added support to d2p dialog