fixed issue with widgets not loading nls

Fixed issues with the widgets referencing the nls code file before it
was loaded. Also started fixes for coding standard.