modified render function to nest folder and module views