removed extraneous defs from invitations controller