updates style on the model