refactored and moved process change email to its own behavior