added modal_dialog macro