Have no idea why inline script tag not working anymore.  moved to controller