Add autorefresh option, open popup only on first search