added dialog controller