add icon for icon button, show and hide proper layer controls for image and rect