consolidated ajax requests by using one request method. removed some unnecessary stuff. changed some names.