visualizer.rs: Moved few funcs around