Cleanup ucp_header template and fix ucp footer error