Added pagination into homepage