footer logic for main nav working