add recent trend graph at history and summary page