changed ajax request to get call as an attempt to fix 500 errors.