adding Function

adding function "showInvitations" for 'Invitation" functionality