the if condition seems to be buggy, do not set dataTable null in case one is defined, also added hook where we can prepare all the viz view stuff