using sweetalert for status instead of popup lib