changed controller to separate thread

Signed-off-by: Bill Beers <nothingatall544@gmail.com>