fix bug that watch function may run in advance of that window.update_vis initialzes.