Refactoring, added quick buttons to history page