set up models and controllers