programmatically generate menu items into tableview