HTML and sorting added