visibility of buttons will be saved after closing