attempting to get ajax functionality