complete add modal and pagination