Added active select modal

And fixed bug in createMarkerTree