extracted ui template code
basic template. no javascript added yet