Changed to Edit Button in index
Refactored and added Pagination
refactoring