whenever you work in electricity cautious method followed. first you shut off all the switches in the box and then switch off the main. then you can change circuit breaker.
First put Off the main switch and then remove both wire from the concern switch terminal
place new circuit breaker in its place and join the wire in proper terminal.