Sort invitationStates in the publication.
Clear invitation field after inviting.
Show invitation state.