Use callbacks for rendering posts and comments