Moved ticket ajax out of draw method to reduce server calls.