adding preview view