Update visualization code