Improve navigation responsive switch and fix IE8