made page content available and modified template processing