fix submitting invites, display invites table