refator widgetOutput to support multi widget packages.
Merge pull request #8 from ramnathv/refactor/widgetOutput

refator widgetOutput to support multi widget packages.