update betting and fix ajax redirects