adds a preview command