Creating topbar menu as a static function