init regions with the viewer