working on history page