extract panel and dialog components

use ‘preview’ mode for dialog instead of ‘preview’ skin