ajax response for getting types for new entities