Replaced before_filter with before_action in notifications_controller.rb