add option hide preview, code review