start moving common code between editor and game top toolbars to toolbar.c/h