refactor ul & ol elements