Close navigation when clicked anywhere outside