added sweetAlert for prettyness