changed currentevent to selectedevent for filtering plugins