more work on email views and invitations