added footer and fixed bug with title inside the header