save and load functionality

listbox and buttons now work properly