snake ui and render html