Toggle preview and html