fixed non-stop loop on home page