Add status success for display popup
If error refresh the page