refactoring/implemented resetAllAttributesin AttributeManager