added show invitation function