adding functionality to generate html sections