Registered the buttonPane as a connection listener