added live preview