Fully implemented the header sub-application