Adding control to the menu.