     
     @IBAction func startPano(_ sender: UIButton) {
         showPadView(for: .freeMove)
+        setButtonStates(start: false, pause: false, cancel: true)
     }
     @IBAction func pausePano(_ sender: UIButton) {
         panoPeripheral?.send(command: .pause)
         showPadView(for: .gridMove)
+        setButtonStates(start: false, pause: false, cancel: true)
     }
     @IBAction func cancelPano(_ sender: UIButton) {
         panoPeripheral?.send(command: .cancel)
         hidePadView()
+        setButtonStates(start: true, pause: false, cancel: false)
     }
 
     func showPadView(for moveMode: MoveMode) {

    var panoPeripheral: PanoPeripheral?

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }

    override func viewWillAppear(_ animated: Bool) {

            self.identifierUILabel.text = panoPeripheral.peripheral?.identifier.uuidString
            //self.signalUILabel.text = ...
        }
        setButtonStates(start: true, pause: false, cancel: false)
    }

    func setButtonStates(start: Bool, pause: Bool, cancel: Bool){
        startUIButton.isEnabled = start
        pauseUIButton.isEnabled = pause
        cancelUIButton.isEnabled = cancel
        for button: UIButton in [startUIButton, pauseUIButton, cancelUIButton]{
            button.alpha = button.isEnabled ? 1.0 : 0.1
        }
    }

    override func didReceiveMemoryWarning() {
