finish the history page, need to add view and edit part to the handler