bind click to register button