getting dynamic 'menu' and 'page actions' menus to work