added simple lock/unlock input behavior when run/stop app button is clicked