Adding pagination on collection show and fixing it on collection edit. fixes #6572