header,footer and subject functions