Hide doc popup on doc click