Modal controller - used proper DI syntax to prevent uglify errors