updated base controller code for minification