Updated php file to call wrt/ ajax.