refactored media browser to support folders