speeding up the history page