Fix email sending, Fix javascript bug on add and delete event