added endpoints and menus to embedded code