changed posts to pages and changed loops