fix problems with multiple widgets on page