Added clicking outside of box to close functionality to HeaderPane menu