Added some more logic branching out, including separate loadPost and loadPosts