minor changes to delete and update methods from the Controller