Add replaceContentFragment method