implement ajax CRUD