updating routing ajax calls, increasing performance