Hooked up gui to chat functionality