closing by click outside extension's window
add confirmation dialog on empty history