update unit control