refactor ActiveCssTemplate