added api request with alert