error dialog method renamed and used