some code to build a menu