Excluding dropdown from navbar on click handling