refactored invites and user dashboard a bit