Hide panel when to click outside of panel