separated the header into a different view with conditional loading of dates