fiddled with ajax calls; went back to how it was before