creating an id for the index in the local storage
small fixes to edit index ui