#7: implementing preview view