Added mode control and enabled/disabled the table view.