rename history route
create model spec and refactor