adds bt connection logic