Added function to build viz dict