added history feature for lines and spheres objects