adding fix to the js rendering on problem on page load, fixes on controllers