tidy and add preview