updated controller to fix minification issue