replaced alert with sweet-alert