Delete and edit functionality.