added a second dialog window
fixed the layout for dialog