changed main controller