add active color and java template code