added dialog style and listeners