adding json to populate pages and posts
moved dictionaries to json files; refactored rendering