Working Ajax on adding entities.