[WIP] Make popup close on click to anywhere.

Will make real pull reuqest once `reset-button` is checked in.