add preview method