added a history modal, instead of a separate page