Set view index for toggle_preview