callbacks for saving tasks