save content to localStorage