add default event behavior for ui classes