fixed the diet table and edit/new pages