anchor.diff:          console.log(response);
         }
       });
  -
     };
   
  -  <% if @map.privacy_state == PrivacyState::PRIVATE %> 
  -    $('#share_map_modal_btn').hide();
  -  <% end %>
  -
  -  $('#select_public').click(function(){
  +  $(document).on('click', '#select_public', function(){
       processPrivacy('<%= PrivacyState::PUBLIC %>');
       $('#share_map_modal_btn').show();
  +    
  +    $(this).html('Public  <i class="icon-group">');
  +    $(this).attr('id','select_private');
  +    $(this).attr('class','btn btn-danger');
     });
  -  $('#select_private').click(function(){
  +  $(document).on('click', '#select_private', function(){
       processPrivacy('<%= PrivacyState::PRIVATE %>');
       $('#share_map_modal_btn').hide();
  +
  +    $(this).html('Private  <i class="icon-user">');
  +    $(this).attr('id','select_public');
  +    $(this).attr('class','btn btn-inverse');
     });
   
   	</script>
  
positive.code:   	<span class="pull-right" >
    		
    		<%= link_to "Share", "#share_map_modal",'data-toggle' => "modal", :class=>'btn', id: 'share_map_modal_btn'%>
  		  <div class="btn-group" data-toggle="buttons-radio">
          
          <% if @map.privacy_state == PrivacyState::PUBLIC %> 
            <button type="button" id="select_public"  class="btn active">Public  <i class="icon-group"></i></button>
            <button type="button" id="select_private" class="btn">Private <i class="icon-user"></i></button>
          <% else %>
            <button type="button" id="select_public" class="btn">Public  <i class="icon-group"></i></button>
            <button type="button" id="select_private" class="btn active">Private <i class="icon-user"></i></button>
          <% end %>
  
        </div>
  		</span>	
  		<% end %>
  
  
negative.code: 
  
    var processPrivacy = function(state){
      $.ajax({
        type: 'POST',
        url: '<%= map_privacy_state_path(@map) %>',
  