       processData: true
     )
 
-  onShow: =>
-    @updateContent()
-
+  updateHeight: =>
     # set height of notification popover
     notificationsContainer  = $('.js-notificationsContainer')
     heightApp               = $('#app').height()

      row = $(e.target).closest('.activity-entry')
      id = row.data('id')
      App.OnlineNotification.destroy(id)
      @resetHeight()
    )

  createContainer: =>

      notificationsContainer.removeClass('is-overflowing')

    notificationsContainer.find('.popover-content').css('height', "#{heightPopoverContentNew}px")

  onShow: =>
    @updateContent()
    @updateHeight()

    # mark all notifications as read
    notificationsContainer.find('.js-markAllAsRead').on('click', (e) =>
