Added upgradeGallery