userTemplate is now a string returning function