concatenateappend statements so html formed properly