added webworker for api request, used localstorage