Add override event to dynamic elements