fixed the buggy update visualization code, and the putColumns error