updated ajax calls to use data variable instead of query string in url