implementing the header functionality