Added histogram methods and view