extended to allow multiple controllers and models
Extended to allow multiple controllers and models