Converted inlined HTML to own template file