various improvements to Menu updating and JS actions