working more on the modal dialog