bugfix - only load dependencies if there are available widgets