Update index and nicescroll