Changed the way box behaviour is attatched to work with the infinite scroll