added scripts for selecting markers or locations on the sidebar