Added pagination to profile index page