updated controllers for apis