changed how posts are viewed, added pagination to showing posts