added connection between canvaspanel and buttonpanel. now two-way connection