changed task controller destroy method