Adds update and delete functionality