Add code for destroy and update new method in controller