refactored code in multiple classes to use a new getAndUnsetAttribute method found in bootstrapItem.