update layouts of the post