Destroy function fixed in taks index view