Added socket messaging and basic layout working