added swith to hide navbar