refactor/condense some of the visualization view stuff