adding a modal dialog