add delete task method