Tries to use modal views if possible
Parent folders will now expand automatically if a child element is selected