updating some constraints, abstracting number of page to subviews