store settings locally on save