appendHTML and printHTML