Add backup state persistence on refresh