renamed main controller