added pagination (hand coded)
close save modal after submit