Replaced all deprecated widgets from menu and toolbar.