use transaction to update title