CSS update and refactoring of getLabelTemplateMarkup function handling.