refactor frontendexception alert