Added control statement for the header to change based on whether there is a title available.