Modified hiding / showing of controls to also work with IE 11.