Add live preview functionality