Set widget dependencies on DOM element to avoid changing view model