fix for refresh and delete in edit index