Adds logic to set the preview tab to HTML entered in the code tab