fixed invite controller definition and made it use the correct module