add delete task function