fixed a bug with deleting palette elements, showing/hiding editor based on which type of palette element is selected