cleanup the menu creation event and improve doc