various save handlers

- cancel/save buttons on preferences
- rest AND localstorage save handlers