added models and controllers to api