change messageError in appClass