loading controller class before executing api