you don't want just any click on the document to hide this. delegate this to a particular selector.