Menu is generated by function