worked on main dialog
worked on main dialog