close panel when clicking icon in advanced mode