popup: fixed removing popup on outside click