Hide nav-bar when clicking outside it