saving state to localState
saving preserves all state
add importing/exporting state from settings page