how to generate terms and conditions page