fixed bugs where multiple widgets couldn't be displayed on page