more improvements to show/hide code