Added success state and disappeared message box