custom comment pages

what coding do I use to activate the custom comment pages so when I click to view comments it stays within my layout rather than reverting to the white page.

Hope that makes sense.