make ColorController more declarative