Adding edit task in the index view