move html into inline template