now preview working