better way of show preview