Formatted html and rearranged list order