fixed output of GUI version

fixed output so it uses the correct code for a Head template