Move preview into its own partial