Save and restore button settings on unload and load.