connecting in spinner