edit index behavior