Revamp template loading to fix usergroup picker