separate html ui into different template files