Add checks to showBanner and hideBanner