make index to call CRUD with ajax