updating controller to support motion sensor