Added a base class for menubar.