storing current index in local storage