redone the templatemanager file, should be more pleasing to the eye now.