update fix variable in model and view