Hooking up the panels and messages