Convert type alert to flash modal

[#39]