tidied header and added footer