Add the method UpdatePreviewPanel

add comments