Removed some dead code and added an invite button.