Add footer to page dynamically