changed all ajax request to http request