Improved logic for displaying boxes on service tab.