add footer to query page