Simplified menu refresh code and decoupled history controls toggle from
session menu toggle.