Refactor projects views and add pagination