move call to widget_dependencies inside closure returned from makeShinyOutput