fixed dynamic menu creation