added dialog example