Improve sgFolderTree directive for mobile