Ajaxified import and implemented the entity api