fixing history page