showing and hiding buttons depending on what type of palette element is selected, made the copy and new layer button work right (insert layers after the selected layer)