modularising visualizer