modal dialogs: ability to separate button that triggers modal form from it's definition

new method was added modalDialogForm, that might be confusing due to many similar methods together with modalFrame and modal.