added addToNextList function to rescue dogs controller
added addToNextList function to potential dog controller