add support for the ui hash within events and triggers

This fixes the selector duplication that can occur within the triggers
and event hash keys