added a function to page to build a menu