added footer to clearPageData