save/restore chart selection; don't re-add comments on tab switch, avoid quadratic comment sort