create contents after page save -- destroy contents on page destruction