updating models from ui