rewrite toggling section