List hiding on Esc or document click