Graph Revamp

Added a new function to handle all of the updating required for the
History tab. Charts are now generated when the view loads to that they
are loaded faster.