widget now handling multiple fields with the same linked table; fixed error in open_dialog() js function