updated index to have edit buttons