reorgnazied the menu and create template table structures