improved ui; added 404 and 500. fixed misleading ui on invitations