update html using append() where possible