anchor.diff:        <button type="button" class="btn btn-primary btn-for-categorize" data-toggle="button"><i class="icon-move"></i><%=t('categories.dragandrop.place')%></button>
         <!--TODO:applycss and fix icons-->
         <div class="btn-group view-categories-group" role="group" aria-label="viewButton" style="float:right;">
  -        <button type="button" class="btn btn-primary"><i class="icon-th icon-border"></i></button>
  -        <button type="button" class="btn btn-primary"><i class="icon-align-justify icon-border"></i></span></button>
  +        <button id="normal-view" type="button" class="btn btn-primary"><i class="icon-th icon-border"></i></button>
  +        <button id="list-view" type="button" class="btn btn-primary"><i class="icon-align-justify icon-border"></i></span></button>
         </div>
       </div>
       <%= render partial: 'categories/edit_categories', :locals => { :scope => scope , :all_categories => all_categories} %>
     <% end %>
  -
  -  <ul class="categories main-categories-space"> 	
  -    <% if profile_subject_is_current? %>
  -      <%= render partial: 'categories/category-add' %>
  -      <%= render partial: 'categories/category_fav' %>
  -    <% end %>
  -    <%= render partial: 'categories/categories', :locals => { :scope => scope, :all_categories => all_categories} %>
  -  </ul>
  +  <div id="normal-instance">
  +    <ul class="categories main-categories-space">
  +      <% if profile_subject_is_current? %>
  +        <%= render partial: 'categories/category-add' %>
  +        <%= render partial: 'categories/category_fav' %>
  +      <% end %>
  +      <%= render partial: 'categories/categories', :locals => { :scope => scope, :all_categories => all_categories} %>
  +    </ul>
  +  </div>
  +    <!--TODO:fix styles -->
  +    <div id="list-instance" style="display:none" >
  +  <%all_categories[0..4].each do |category|%>
  +    <h2 style="clear:both;float:left;"><%= category.title %></h2>
  +    <ul style="clear:both;" class="categories main-categories-space">
  +        <%category.property_objects[0..6].each do |resource| %>
  +          <%=render :partial=> "entities/entity", :locals => { :entity => resource, :prefix_id =>"catalogue" } %>
  +        <%end%>
  +        <!-- TODO: normalize in css-->
  +    </ul>
  +    <button style="clear:both;float:right;" onclick="location.href='<%=category_url(category)%>'" class="show_more_catalogue" name="<%=category.title%>"><%=t('view_all')%></button>
  +    <%end%>
  +  </div>
   </div>
   
   
  
positive.code:   	$(".btn-for-categorize").click(function(){
    		$("#categories_edition").fadeIn();
  
        $("div[bs-img]").each(function(){
         $(this).backstretch($(this).attr("bs-img"));
        });
        
        beginIndex = getidArray();
        beginObjects = $(".edit_categories .box-item").clone();
      });
    });
  
    function updateMainView(){
  
negative.code:     actualState.appendTo(".main-categories-space");
    };
  
  function backstretch_fix(){
    $("div[bs-img]").each(function(){
     $(this).backstretch($(this).attr("bs-img"));
    });
  }
  
  </script>
  