init models and controllers