lib menu creation