split toolbar and menu creation