* refactor color order design within a color feature using a template to reduce duplicate code making it easier to add similar features with different order * fix warnings