Changed the api controller