move state vars from Pages View to Pages Model