added chart to view patient page