always close filter panel and legend panel when popup is created