Added delete task function