adds delete button that dynamically updates index