implemented historization module. fixed some bugs in views.