correct display logic for footer