Use localstorage to persist screen state