extracted PostsFragment to it's own class, fixed async to do different types of api calls per params given