add toggle for code/palette view. working with display: none