move some logic from desktopCtrl to folder/link directives