created method so that users can delete tasks