when change the state to leader, we should also update the s.leader to its own name