call check_viz_selection_pg1 from js, not on click