main-controler update