castoff button renamed as just cast
SimplifyhideButton('x', false) as showButton('x')