configured main & sub view.