How i can avoiding refresh the script if i click button

you can store status of that button in session states.
This might help you: Session state and button

1 Like