Added the delete task function