When scene changes forgot what i did HELP NEEDED

Hello, i have a problem with scenes. Im trying to explain what i did.

I have 2 scenes , scene1 and scene2

in Scene1 i have 5 buttons, but1, but2, but3, but4, but5

AS for but1 = on (press) { but1._visible = false; gotoAndPlay(“Scene2”,1)
//i have same codes for all buttons.

I have 1 more button on Scene2 called BACK , when i press BACK ( AS = gotoAndPlay(“Scene1”,1) , its goes scene1 BUT FORGOTS BUTTON WHICH I CLICKED !

how can i fix it ?