added option to place openDialog arguments on parent scope