adding controls fix to build and minified versions