use localStorage to persist level lock state