updated homepage loop