check if component is enabled before doing footer