Add title for the main html and indent the based html code