Changed modal controller to use inline constructor to support DI after minification