Make use group function as expected on home page