Add related, popular and latest post tab sort logic, add default images and avatars