Remove the need for $scope.switchTool() and update $scope.mode directly