dynamically update menu bar