hw 5 need to rerender HTML correctly