connecting buttons in GUI