Add edit&delete functions directly into indexSuccess