add OnSelect api in FolderTree
add helper method RenderControl