Added mail behaviour Ajax is buggy