added history page and button