added method to check if inifinite scroll