More menu and toolbar enabling code.