How to edit the thank you page?

How / where can we modify the thank you page? It is currently the default layout of our theme. We need to be able to define a specific template under page attributes, assign particular widgets, etc.