ace editor and live preview