Delete and update are functioning correctly