insert competence working with ajax