added more coloring optimization
added transitional animation