fix bugs in help pane switch and select-all check state after clearing