updates style on model