update model and style