major refactor
can go to a history page