diff --git a/app/views/tree/_head.html.haml b/app/views/tree/_head.html.haml
new file mode 100644
index 00000000..3592f573
--- /dev/null
+++ b/app/views/tree/_head.html.haml
@@ -0,0 +1,11 @@
+%ul.nav.nav-tabs
+ %li
+ = render partial: 'shared/ref_switcher', locals: {destination: 'tree', path: params[:path]}
+ %li{class: "#{'active' if (controller.controller_name == "refs") }"}
+ = link_to tree_project_ref_path(@project, @ref) do
+ Source
+ %li.right
+ .input-prepend.project_clone_holder
+ %button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
+ %button{class: "btn small", :"data-clone" => @project.http_url_to_repo} HTTP
+ = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
diff --git a/app/views/refs/_submodule_item.html.haml b/app/views/tree/_submodule_item.html.haml
similarity index 100%
rename from app/views/refs/_submodule_item.html.haml
rename to app/views/tree/_submodule_item.html.haml
diff --git a/app/views/refs/_tree.html.haml b/app/views/tree/_tree.html.haml
similarity index 100%
rename from app/views/refs/_tree.html.haml
rename to app/views/tree/_tree.html.haml
diff --git a/app/views/refs/_tree_commit.html.haml b/app/views/tree/_tree_commit.html.haml
similarity index 100%
rename from app/views/refs/_tree_commit.html.haml
rename to app/views/tree/_tree_commit.html.haml
diff --git a/app/views/refs/_tree_file.html.haml b/app/views/tree/_tree_file.html.haml
similarity index 100%
rename from app/views/refs/_tree_file.html.haml
rename to app/views/tree/_tree_file.html.haml
diff --git a/app/views/refs/_tree_item.html.haml b/app/views/tree/_tree_item.html.haml
similarity index 100%
rename from app/views/refs/_tree_item.html.haml
rename to app/views/tree/_tree_item.html.haml
diff --git a/app/views/refs/tree.html.haml b/app/views/tree/show.html.haml
similarity index 100%
rename from app/views/refs/tree.html.haml
rename to app/views/tree/show.html.haml
diff --git a/app/views/refs/tree.js.haml b/app/views/tree/show.js.haml
similarity index 100%
rename from app/views/refs/tree.js.haml
rename to app/views/tree/show.js.haml