Fix hiding of menu buttons when switching tabs