setting the banner view to hidden when is not visible