Added functionality to some menu items.