Added pagination to profile and to homepage