Altered handling of opens attribute, added handling of buttonClasses