refactored banner code