diff --git a/beat/web/algorithms/templates/algorithms/panels/actions.html b/beat/web/algorithms/templates/algorithms/panels/actions.html
index 80d4bc6aaef571cb01bfb4d4dc342229661f233f..effba5f53684af32fbbbfb34cebd83f8a767e637 100644
--- a/beat/web/algorithms/templates/algorithms/panels/actions.html
+++ b/beat/web/algorithms/templates/algorithms/panels/actions.html
@@ -32,9 +32,11 @@
   {% ifequal request.user.username object.author.username %}
 
   <!-- Share, needs to be the owner and it may not be public already -->
+  {% if object.valid %}
   {% ifnotequal object.get_sharing_display 'Public' %}
   <a class="btn btn-default btn-share" href="{{ object.get_absolute_url }}#sharing" data-toggle="tooltip" data-placement="bottom" title="Share"><i class="fa fa-share-square-o fa-lg"></i></a>
   {% endifnotequal %}
+  {% endif %}
 
   <!-- Delete, needs to be the owner -->
   {% if object.deletable %}
@@ -42,7 +44,9 @@
   {% endif %}
 
   <!-- New version, needs to be the owner -->
+  {% if object.valid %}
   <a class="btn btn-default btn-new-version" href="{% url 'algorithms:new-version' object.name %}" data-toggle="tooltip" data-placement="bottom" title="New version"><i class="fa fa-copy fa-lg"></i></a>
+  {% endif %}
 
   <!-- Edit, needs to be modifiable -->
   {% if object.modifiable %}
@@ -56,12 +60,14 @@
   <a class="btn btn-default btn-edit" href="{% url 'admin:algorithms_algorithm_change' object.id %}" data-toggle="tooltip" data-placement="bottom" title="Edit as admin"><i class="fa fa-cogs fa-lg"></i></a>
   {% endif %}
 
-  {% if open_source and not request.user.is_anonymous %}
+  {% if object.valid and open_source and not request.user.is_anonymous %}
   <!-- Fork button, needs to be logged in -->
   <a class="btn btn-default btn-fork" href="{% url 'algorithms:fork' object.author.username object.name object.version %}" data-toggle="tooltip" data-placement="bottom" title="Fork"><i class="fa fa-code-fork fa-lg"></i></a>
   {% endif %}
 
   <!-- Search, works for logged-in and anonymous users -->
+  {% if object.valid %}
   <a class="btn btn-default btn-search" href="{% url 'search:search' %}?query=type:results%20{% if object.analysis %}analyzer{% else %}algo{% endif %}:{{ object.fullname }}" data-toggle="tooltip" data-placement="bottom" title="Search experiments"><i class="fa fa-search fa-lg"></i></a>
+  {% endif %}
 
 </div>
diff --git a/beat/web/algorithms/templates/algorithms/view.html b/beat/web/algorithms/templates/algorithms/view.html
index a791b7748ef2ffa97c8a6dab544241d38f998d69..1998f2d4176760f93ebdcc141ecb992c80122f25 100644
--- a/beat/web/algorithms/templates/algorithms/view.html
+++ b/beat/web/algorithms/templates/algorithms/view.html
@@ -87,7 +87,7 @@
     <ul id="object-tabs" class="nav nav-tabs" role="tablist">
       <li role="presentation" class="active"><a href="#viewer" role="tab" data-toggle="tab" aria-controls="viewer">Algorithm</a></li>
       <li role="presentation"><a {% if not algorithm.description %}title="No documentation available" {% endif %}href="#doc" role="tab" data-toggle="tab" aria-controls="doc">Documentation{% if not algorithm.description %} <i class="fa fa-warning"></i>{% endif %}</a></li>
-      {% if owner %}
+      {% if owner and algorithm.valid %}
       <li role="presentation"><a href="#sharing" role="tab" data-toggle="tab" aria-controls="sharing">Sharing</a></li>
       {% endif %}
       <li role="presentation"><a href="#experiments" role="tab" data-toggle="tab" aria-controls="experiments">Experiments <span class="badge">{{ experiments.count }}</span></a></li>
@@ -103,7 +103,7 @@
       <div role="tabpanel" class="tab-pane" id="doc">
         {% doc_editor algorithm 'api_algorithms:object' %}
       </div>
-      {% if owner %}
+      {% if owner and algorithm.valid %}
       <div role="tabpanel" class="tab-pane" id="sharing">
         {% algorithm_sharing algorithm %}
       </div>