added localstorage to save blog data