implemented simple preview controller
render preview template