update style in each post