dynamically create menu on index