Changed all calls to make stakes to ajax calls