add trigger to custom events