add preview view HTML and styles