improved header and added footer