Setting the diet view with Arvinds code and fixed his resources name. TODO : setup the logic