Changed order of show/hide so that the control doesn't jump around (hide first, then show)