moved to toolboxpanel and events