done refactoring, user invite action yet to do