Modules dialog, working on pagination