Added functionality to the menu bar