Updated rules ajax query

Updates rules to get it work