Dog has new home after spending over 500 days in Kansas shelter