fixing refresh action in jstree

This PR should fix minor issues with reloading the tree. Basically when you click refresh button you should see spinner alongside text "Loading...".