add onclick function in email index delete event