before modifying prepare html for fragments