add supporting groovy code for Menus