refactored drawing contacts and messages into GUI