Refactored the header renderings for index and faculty pages