add destroy function in controller