update the post layout