preferencesdialog changed for adding & deleting textfiles