switch the html as well