Added preview textarea for scratchpad editing