Index, delete working, also saving of state