added new method: registerButton