configuring controllers and models