Added preview view support.