Optimize Code Block View toggling. Also auto-hide Code section for pages without code