added new method: registerButton2