added some links to keeps views consistant and started totals js functionality
debugging statview js
tried refactoring statsview some more
fix merge conflict