upadte main controller