add local storage to save open status