switching preview to use a popup