adding custom event feature