update controller variable