move templates stuff out of accounts-ui-unstyled