fixed ajax queries from datamodel