Use localStorage to save state of notepad and todo