render nested folder structure in view