#246 :refactor invitation controller