got side panel working with markers. need to automatically close the sidepanel when an item is clicked