refactor folder path resolution, fix iframe sizing issues