implemented getting selection from the paletteview to the canvas