finally factore out showModuleWidgets to dashboard.js file