some fixes and improvements in complex script view controller, now the preview is send automatically to the wylight