Added bet and Ajax