added connection detector
added checkbox functionality