rebuild to pages