updates chat header onclick to have e in function call.