Add delete&edit functionalities directly in indexSuccess