layout and basic user and messaging functionality