     @initScrolling()
     @initTheme()
     
-    @$attachment = @$currentMenuPanel.find('.attachment')
-    
+    @$attachment = @$currentMenuPanel.find('.attachment')    
     @$attachment.find('input').change (event) =>
       $('body').removeClass('fixed, scroll')
       $('body').css('background-attachment', $(event.currentTarget).val())

          bedsheet_id: @bedsheetId if @bedsheetId?
          scrolling: @scrolling if @scrolling?
          theme: @theme if @theme?
          success: (data, status, xhr) =>
            success = true
       }


  initTheme: =>        
    # for new/edit entry    
    if $('#entry_view_preference_attributes_theme').attr('id')?  
      $('#light, #dark').click (event) ->
        @newTheme = $(event.currentTarget).attr('id')
        log(@newTheme)
        $('#body').removeClass('dark light').addClass(@newTheme)        
