Fix modal dialog info type
Add function calls to open/close modal dialogs