modal dialog implementation begining