build view_map_arrays in setup models