update main controller