Added a mode parameter to NodeComponent.walk() and overwrite it for switches. Simplified HTML rendering for switches.