modifies viewpages