fixing pagination on edits page