added an html template and better ui service