Hide headerbar forms when clicking outside them