added open file dialog and table insertion