Fixed broken reference to Button and switched from IllegalArgumentException to InvalidAttributeException