updated history to be lazy loading