Change pass popover close on outer click