update style in add and edit views