on local storage success call lsuccess and lerror funtions