fixed issue with widget when domNode was already assigned. Fixed an issue with router in Firefox