pagination added to homepage