I needed to do that because I'll use this variable only on button click event.