How does previewing and viewing work?