refactor fronted exception alert