Dynamic button registration.