new post: detecting clicks outside an element the right way