Paginate

Add paginate for Project/index page.
Add some refactoring.