add preview data and remove unwanted form content