make sure sidebar changes are always saved on input blur