auto generate main menu based on sources