refactored javascript for pagination and group/contact creation
fix MC
fix MC