[templates] improve refvals form display