changed api controller