set delegate when creating menus