update style according to wireframe