refactor statistics views and controllers
add test for lib money