updating controllers and models