Navbar updated

Fixed click outside of the navbar. Navbar now hides automatically when
user clicks somewhere.