added command 'preview'
added command 'preview'