bug fix for date switching in food calculator && some work done on charts