fixed a bug in the template files and corrected some syntax uglinesses in workgroup views