refactored updateCtrls