Dev historical view

Merge to add sorting overview table on click on header to dev, also may fix a display bug.