local storage fixes

an save, edit and update data. Add new data etc. all works fun times