Added functionality to menubar